﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class DefaultServer : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Literal1.Text += "页面执行超时时间:" + Server.ScriptTimeout + "<br>";
        Literal1.Text += "服务器计算机名称:" + Server.MachineName + "<br>";
        Literal1.Text += "当前根路径的物理路径:" + Server.MapPath("/") + "<br>";
        Literal1.Text += "Html编码:" + Server.HtmlDecode("<br>")+"<br>";
        Literal1.Text += "Html解码:" + Server.HtmlDecode("&lt;") + "<br>";
        Literal1.Text += "URL编码:" + Server.UrlEncode("张三") + "<br>";
        Literal1.Text += "URL解码:" + Server.UrlDecode("%e5%bc%a0+%e4%b8%89") + "<br>";

    }
}